<?PHP
/**
 * This file is part of Thai-Cms < code.google.com/p/thai-cms >
 *
 *  This is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This software is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser Public License for more details.
 *
 *  You should have received a copy of the GNU Lesser Public License
 *  along with this software.  If not, see <http://www.gnu.org/licenses/>.
 */

 /**
 * @ผู้เขียน drsaluml
 */
//error_reporting(0); 
define('SMARTY_DIR',str_replace("","/",getcwd()).'/includes/libs/');
require_once(SMARTY_DIR . 'Smarty.class.php');
require_once('config/config.php');
require_once('includes/class.mysql.php');
$smarty = new Smarty();
$db = new DB();
$smarty->setTemplateDir('template');
$smarty->setCompileDir('cache');
$connectdb = $db->connectdb(DB_NAME_ADM,DB_USERNAME_MY,DB_PASSWORD_MY);
?>